package com.caishi.lkx.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caishi.lkx.user.model.AdminUserModel;
import com.zzw.common.exception.BizException;
import com.zzw.common.service.NameService;
import com.zzw.common.service.service.ITreeModelService;
import com.caishi.lkx.user.ienum.type.UserAccountType;

import java.util.List;
import java.util.Map;

/**
 * @author by keray
 * date:2021/4/9 10:53 上午
 */
public interface IAdminUserService extends IUserService<AdminUserModel>, ITreeModelService<AdminUserModel, String>, NameService<AdminUserModel, String> {

    AdminUserModel adminUserDetail(String userId);

    IPage<AdminUserModel> search(Map<String, Object> param, Page<AdminUserModel> page, boolean total);

    AdminUserModel addUser(AdminUserModel model, List<String> roleIds, List<Long> positionIds, String username, String password, UserAccountType loginType) throws BizException;

}
